import * as cornerstone from '@cornerstonejs/core';
import ptScalingMetaDataProvider from './ptScalingMetaDataProvider';

const { calibratedPixelSpacingMetadataProvider
} = cornerstone.utilities;

export default function initProviders(modsInStudy) {
	if (modsInStudy == 'dx') {
		cornerstone.metaData.addProvider(ptScalingMetaDataProvider.get.bind(ptScalingMetaDataProvider), 11000);
	}
	cornerstone.metaData.addProvider(calibratedPixelSpacingMetadataProvider.get.bind(calibratedPixelSpacingMetadataProvider), 10000);
}
